package ink.xiaobaibai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import ink.xiaobaibai.common.PageInfo;
import ink.xiaobaibai.entity.OxygenDevice;
import ink.xiaobaibai.enumOxy.DeviceStatus;
import ink.xiaobaibai.vo.UserByDeviceVo;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author xiaobaibai
 * @since 2021-05-22
 */
public interface IOxygenDeviceService extends IService<OxygenDevice> {

    public PageInfo<OxygenDevice> getOxygenDeviceList(Integer pageNum, Integer pageSize, Integer userId, Integer depId, String provinceCity, String status);

    /**
     * 根据userId获取负责人信息(包括部门名称的)
     */
    public UserByDeviceVo getUserInfoByUserId(Integer userId);

    /**
     * 改变氧气机的状态
     */
    public void updateDeviceStatus(Integer deviceId, DeviceStatus status);

}
